﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Web.aspx.cs" Inherits="Web_Web" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <title>Web</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <h2>
        Listado de Productos</h2>
    <asp:EntityDataSource ID="edsProductos" runat="server" 
            ConnectionString="name=ObligatorioDotNetEntities" 
            DefaultContainerName="ObligatorioDotNetEntities" EnableFlattening="False" 
            EntitySetName="Products" EntityTypeFilter="Product">
        </asp:EntityDataSource>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" CellPadding="4" DataKeyNames="ProductId" 
        DataSourceID="edsProductos" ForeColor="#333333" GridLines="None">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="ProductId" HeaderText="ProductId" ReadOnly="True" 
                    SortExpression="ProductId" Visible="False" />
                <asp:BoundField DataField="ProductDesctiption" HeaderText="Producto" 
                    SortExpression="ProductDesctiption" />
                <asp:BoundField DataField="ProductPrice" DataFormatString="{0:f}" 
                    HeaderText="Precio" SortExpression="ProductPrice" />
                <asp:CheckBoxField DataField="OnSale" HeaderText="En Oferta" 
                    SortExpression="OnSale" />
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
</asp:Content>
